package com.imooc.bilibili.mapper.auth;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imooc.bilibili.domain.auth.UserRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户角色关联表 Mapper 接口
 * </p>
 *
 * @author gcq
 * @since 2022-05-31
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {

    /**
     * 查询用户角色
     *
     * @param userId
     * @return
     */
    List<UserRole> getUserRoleByUserId(@Param("userId") Long userId);
}
